package com.bdzl.admin.service.data.impl;

import com.bdzl.pub.vo.data.AreaVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bdzl.admin.dao.data.AreaDao;
import com.bdzl.pub.entity.data.AreaDO;
import com.bdzl.admin.service.data.AreaService;



@Service
public class AreaServiceImpl implements AreaService {
	@Autowired
	private AreaDao areaDao;
	
	@Override
	public AreaDO get(Integer id){
		return areaDao.get(id);
	}
	
	@Override
	public List<AreaDO> list(Map<String, Object> map){
		return areaDao.list(map);
	}

	@Override
	public List<AreaVO> listAndCity(Map<String, Object> map) {
		return areaDao.listAndCity(map);
	}

	@Override
	public int count(Map<String, Object> map){
		return areaDao.count(map);
	}
	
	@Override
	public int save(AreaDO area){
		return areaDao.save(area);
	}
	
	@Override
	public int update(AreaDO area){
		return areaDao.update(area);
	}
	
	@Override
	public int remove(Integer id){
		return areaDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return areaDao.batchRemove(ids);
	}
	
}
